<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            width: 500px;
            border-collapse: collapse;
            margin: 50px auto;
        }

        thead {
            background-color: #eeeeee;
        }

        tr {
            height: 40px;
            text-align: center;

        }

        .bgc {
            background-color: #7DB3FA;
        }
    </style>
</head>

<body>
    <div id="app">

        <table border="1">
            <thead>
                <tr>
                    <td v-for="(value,key) in mydata[0]">{{key}}</td>
                    <td>成绩</td>
                </tr>
            </thead>
            <tbody>

                <tr v-for="item in mydata" :class="item.score >=90?'bgc':''">
                    <td v-for="(value,key) in item">{{value}}</td>
                    <td v-if="item.score >=90">优秀</td>
                    <td v-else-if="item.score >=80&&item.score <90">良好</td>
                    <td v-else-if="item.score >=60&&item.score <80">及格</td>
                    <td v-else="item.score >=90">不及格</td>
                </tr>
            </tbody>
        </table>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {

                mydata: [
                    { id: 1, name: '诸葛亮', sex: '男', score: 98 },
                    { id: 2, name: '周瑜', sex: '男', score: 88 },
                    { id: 3, name: '刘阿斗', sex: '男', score: 50 },
                    { id: 4, name: '曹植', sex: '男', score: 90 },
                    { id: 5, name: '张飞', sex: '男', score: 70 },
                    { id: 6, name: '曹丕', sex: '男', score: 55 }
                ]

            },
            methods: {

            },
        })
    </script>
</body>

</html>